<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>部门网格化</title>

<link rel="shortcut icon" href="favicon.ico">
<link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6"
	rel="stylesheet">
<link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">

<link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
<link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0"
	rel="stylesheet">

</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">
		<div class="row">
			<div class="col-sm-4">
				<div class="ibox">
					<div>
						<h3 style="text-align: center;">一级部门</h3>
						<ul class="sortable-list connectList agile-list">
							<foreach name="rs_departmentLists" item="val_departmentLists"
								key="k"> <php> if($k%2==0){ $floattype="left";
							}else{ $floattype="right"; } </php> <a
								href="__URL__/listsinfo/dId/<{$val_departmentLists.dId}>">
								<li style="background: <{$color[0]["$k"]}>;color: #ffffff;
									width: 49%; height: 200px; float: <{$floattype}>"> <span
									style="font-size: 18px; font-weight: bold; line-height: 180px; margin: 0 auto; text-align: center; display: block; color: #ffffff;"><{$val_departmentLists.dName}></span>

							</li>
							</a> </foreach>

						</ul>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="ibox">
					<div>
						<h3 style="text-align: center;">二级部门</h3>
						<ul class="sortable-list connectList agile-list">
							<foreach name="rs_departmentLists2" item="val_departmentLists2"
								key="k2"> <php> if($k2%2==0){ $floattype="left";
							}else{ $floattype="right"; } $departmentLists=M("department");
							$dPid=$val_departmentLists2["dPid"];
							$rs_d1=$departmentLists->where("dId={$dPid}")->find(); </php> <a
								href="__URL__/listsinfo/dId/<{$val_departmentLists2.dId}>">
								<li style="background: <{$color1[0]["$k2"]}>;color:
									#ffffff; width: 49%; height: 140px; float: <{$floattype}>"> <span
									style="font-size: 16px; font-weight: bold; margin: 0 auto; text-align: center; display: block;"><br><{$rs_d1["dName"]}>

										<br> ↓ <br> <span
										style="font-size: 16px; color: #ffffff"><{$val_departmentLists2.dName}></span></span>
							</li>
							</a> </foreach>

						</ul>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="ibox">
					<div>

						<h3 style="text-align: center;">三级部门</h3>
						<ul class="sortable-list connectList agile-list">
							<foreach name="rs_departmentLists3" item="val_departmentLists3"
								key="k3"> <php> if($k3%2==0){ $floattype="left";
							}else{ $floattype="right"; } $departmentLists=M("department");
							$dPsid=$val_departmentLists3["dPsid"];
							$rs_d2=$departmentLists->where("dId={$dPsid}")->find();
							$dPid1=$rs_d2["dPid"];
							$rs_d1=$departmentLists->where("dId={$dPid1}")->find(); </php> <a
								href="__URL__/listsinfo/dId/<{$val_departmentLists3.dId}>">
								<li style="background: <{$color2[0]["$k3"]}>;color:
									#ffffff; width: 49%; height: 120px; float: <{$floattype}>"> <span
									style="font-size: 14px; font-weight: bold; line-height: 20px; margin: 0 auto; text-align: center; display: block;">
										<{$rs_d1.dName}> <br> ↓ <br> <{$rs_d2.dName}> <br>
										↓ <br> <{$val_departmentLists3.dName}>
								</span>
							</li>
							</a> </foreach>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
	<script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="__PUBLIC__/Theme1/js/jquery-ui-1.10.4.min.js"></script>
	<script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
	<script>
        $(document).ready(function(){$(".sortable-list").sortable({connectWith:".connectList"}).disableSelection()});
    </script>
</body>

</html>
